import request from '@/utils/request'

// 查询组织管理列表
export function listOrganization(query) {
  return request({
    url: '/organization/organization/list',
    method: 'get',
    params: query
  })
}

export function listOrgs(query) {
  return request({
    url: '/organization/organization/getList',
    method: 'get',
    params: query
  })
}

// 查询组织管理详细
export function getOrganization(guid) {
  return request({
    url: '/organization/organization/' + guid,
    method: 'get'
  })
}

// 新增组织管理
export function addOrganization(data) {
  return request({
    url: '/organization/organization',
    method: 'post',
    data: data
  })
}

// 修改组织管理
export function updateOrganization(data) {
  return request({
    url: '/organization/organization',
    method: 'put',
    data: data
  })
}

// 删除组织管理
export function delOrganization(guid) {
  return request({
    url: '/organization/organization/' + guid,
    method: 'delete'
  })
}

// 导出组织管理
export function exportOrganization(query) {
  return request({
    url: '/organization/organization/export',
    method: 'get',
    params: query
  })
}
